class LabelRenderer extends eui.ItemRenderer {
    private labelDisplay:eui.Label;
    private dataGroup:eui.Group;
    private bcImg:eui.Image;
    public constructor(){
        super();
        this.touchChildren = true;
        this.dataGroup=new eui.Group();
        this.bcImg=new eui.Image();
        this.bcImg.source="resource/assets/SearchScene/白色单元格.png"
        this.labelDisplay = new eui.Label(); 
        this.dataGroup.addChild(this.bcImg);
        this.dataGroup.addChild(this.labelDisplay);
        this.addChild(this.dataGroup);
    }
    protected dataChanged():void{
        //显示数据中的 label 值
        this.dataGroup.width=726;
        this.dataGroup.height=86;
        this.bcImg.x=12;
        this.bcImg.y=0;
        this.labelDisplay
        this.labelDisplay.width=709;
        this.labelDisplay.height=86;
        this.labelDisplay.x=30;
        this.labelDisplay.y=0;
        this.labelDisplay.textAlign="left";
        this.labelDisplay.verticalAlign="middle";
        this.labelDisplay.textFlow=<Array<egret.ITextElement>>[
            {text:this.data.label,style:{"fontFamily":"PingFang SC","size":30,"textColor":0x0c2f59}},
            {text:"     "},
            {text:this.data.meaning,style:{"fontFamily":"PingFang SC","size":26,"textColor":0x666666}}
        ]
        
    }
}